const WXAPI = require('apifm-wxapi')

Page({
  onLoad: function(options) {
    console.log("获取出库订单列表")
    this.getStockOutList();
  },


  /**
   * 获取代卖信息
   */
  async getStockOutList() {
    console.log('getting sell request list')
    const res = await WXAPI.getStockOutList({"userId":wx.getStorageSync('userid')});
    console.log("出库信息获取结果："+JSON.stringify(res))
    if(res.code == 20000){
      this.setData({
        sellRequestList: res.data
      });
    }
  }

 
})